package com.zhanghu.backendZray.pojo.request.dailyPlanTask;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author ZhangDong
 * @date 2024/7/7 18:16
 */
@Data
public class DailyPlanRequest {

    @NotNull(message = "id不能为空", groups = {Update.class})
    private Integer id;
    /**
     * 人员id
     */
    @NotNull(message = "用户id不能为空", groups = {Create.class, Update.class})
    private Integer userId;
    /**
     * 人员姓名
     */
    @NotNull(message = "用户姓名不能为空", groups = {Create.class, Update.class})
    private String userName;

    /**
     * 标题
     */
    @NotEmpty(message = "标题不能为空", groups = {Create.class, Update.class})
    private String title;

    /**
     * 内容
     */
    @NotEmpty(message = "内容不能为空", groups = {Create.class, Update.class})
    private String content;

    /**
     * 任务类型：0 记忆任务；1 定时任务
     */
    @NotNull(message = "任务类型不能为空", groups = {Create.class, Update.class})
    private Byte taskType;

    /**
     * 记忆开始时间
     */
    private LocalDate rememberStartDate;

    /**
     * 定时任务时间
     */
    private LocalDateTime scheduledTaskDateTime;

    /**
     * 提前几分钟提醒
     */
    private Byte aheadMinutes;

    /**
     * 备注
     */
    private String remark;
    /**
     * 是否自动生成任务
     */
    private boolean autoCreateTask;

    public interface Update {
    }

    ;

    public interface Create {
    }

    ;

    public interface Query {
    }

    ;
}
